package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class ebr implements IServerCallBack {
    private a ˊ;

    interface a {
        void ˎ(BaseRequest o_cvu, ResponseBean responseBean);

        void ॱ(BaseRequest o_cvu, ResponseBean responseBean);
    }

    ebr(a aVar) {
        this.ˊ = aVar;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (this.ˊ == null) {
            return;
        }
        if (responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
            this.ˊ.ˎ(o_cvu, responseBean);
        } else {
            this.ˊ.ॱ(o_cvu, responseBean);
        }
    }

    public void ˏ(String str, String str2, int i) {
        cfw.ˎ(dgu.ˋ(str, str2, i), this);
    }

    public void ˊ() {
        this.ˊ = null;
    }
}
